package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IBindAli
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.module.BindAliModule

/**
 * author: FHP
 * data: on 2018\1\29 0029 13:36
 * E-Mail: 103945089@qq.com
 */
class BindAliPresenter(private val iBindAli: IBindAli) : BindAliModule.OnBindAliListener {
    private val module=BindAliModule()

    fun bindAli(params: HttpParams){
        module.bindAli(params,this)
    }


    override fun showLoading() {
        iBindAli.showLoading()
    }

    override fun onBindListner(baseBean: BaseBean) {
        iBindAli.bindAli(baseBean)
    }
}